{layout name="layout" $title/}
<div class="col-md-9">
  <div class="panel panel-default  panel-success">
    <div class="panel-heading">
      <h3 class="panel-title">雇员信息</h3>
    </div>
    <div class="panel-body">
      <form class="form-horizontal" method="post" class="post" action="{:url('office/employee_organization/update','id='.$employee.id)}" enctype="multipart/form-data">
        <table class="table table-striped  table-hover">
          <tr class="info">
            <th class="text-right ">属性</td>
            <th class="">参数</td>
          </tr>
          <tr>
            <td class="text-right">编号</td>
            <td class="">{$employee.code}</td>
          </tr>
          <tr>
            <td class="text-right">名称</td>
            <td class="">{$employee.title}</td>
          </tr>
          <tr>
            <td class="text-right">密码</td>
            <td class="">{$employee.password}</td>
          </tr>
          <tr>
            <td class="text-right">地址</td>
            <td class="">{$employee.address}</td>
          </tr>
          <tr>
            <td class="text-right">组织机构信息</td>
            <td class="">
              <table class="table table-striped table-hover">
                <tr>
                  <td>序号</td>
                  <td>组织机构_编号</td>
                  <td>组织机构_名称</td>
                  <td>组织机构_状态</td>
                  <td>组织机构_操作</td>
                </tr>
                {volist name="employee_organization" id="organization" key="i"}
                <tr>
                  <td>{$i}</td>
                  <td>{$organization.code}</td>
                  <td>{$organization.title}</td>
                  <td>{$organization.static}</td>
                  <td><a href="{:url('office/employee_organization/delete',['emp_id'=>$employee.id,'org_id'=>$organization.id])}"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td>
                </tr>
                {/volist}
              </table>
            </td>
          </tr>
        </table>
        <div class="col-md-6">
          <table class="table table-striped .table-bordered  table-hover">
            <tr>
              <th class="">序号</td>
              <th class="">序号</td>
              <th class="">编号</td>
              <th class="">名称</td>
            </tr>
            {volist name="organization_tree" id="unchecked" key='a'}
            <tr>
              <td><input type="checkbox" name="select_organization[]" id="optionsRadios1" value="{$unchecked.id}" {volist name="employee_organization" id="organization" key="i"}{$organization.code==$unchecked.code?="checked"} {/volist}></td>
              <td class="">{$a}</td>
              <td class="">{$unchecked.code}</td>
              <td class="" style="padding-left:{$unchecked.level*2}em">{$unchecked.title}</td>
            </tr>
            {/volist}
          </table>
        </div>
        <div class='text-center'>
          <a href="{:url('office/employee_organization/index')}"  class="btn btn-primary">返  回 <span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span></a>
          <button type="submit" name='decide' value="1" class="btn btn-primary">保  存 <span class="glyphicon glyphicon-arrow-up" aria-hidden="true"></span></button>
        </div>
      </form>
    </div>
  </div>

</div>